package org.ucas.faker.web.service.Visualization.entity;

import java.util.ArrayList;
import java.util.List;

public class DataFactory {

    private List<String> standardList = new ArrayList<String>();
    private List<List<Integer>> countListGroup = new ArrayList<List<Integer>>();
    private List<List<String>> labelListGroup = new ArrayList<List<String>>();

    public void combineData(){
        //TODO sort standardList
    }

    public void addData(List<Integer> countList, List<String> labelList){
        this.countListGroup.add(countList);
        this.labelListGroup.add(labelList);
    }

    private void addStandard(List<String> labelList){
        for (String label : labelList){
            if (!this.standardList.contains(label)){
                this.standardList.add(label);
            }
        }
    }

    public List<String> getStandardList() {
        return standardList;
    }

    public void setStandardList(List<String> standardList) {
        this.standardList = standardList;
    }

    public List<List<Integer>> getCountListGroup() {
        return countListGroup;
    }

    public void setCountListGroup(List<List<Integer>> countListGroup) {
        this.countListGroup = countListGroup;
    }

    public List<List<String>> getLabelListGroup() {
        return labelListGroup;
    }

    public void setLabelListGroup(List<List<String>> labelListGroup) {
        this.labelListGroup = labelListGroup;
    }


}
